# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-ipc-shareable
pkgver=1.13
pkgrel=2
pkgdesc="Perl/CPAN Module IPC::Shareable : Tie a variable to shared memory"
arch=("any")
url="https://search.cpan.org/dist/IPC-Shareable"
license=("GPL" "PerlArtistic")
source=("https://search.cpan.org/CPAN/authors/id/S/ST/STEVEB/IPC-Shareable-$pkgver.tar.gz")
sha256sums=('456e665f72a3fb7ba5a8e70e321cfc9c8259defb3111b51940ad08cab9c00e6b')

build() {
  cd "$srcdir"/IPC-Shareable-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/IPC-Shareable-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
